﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Hangout.Cloud.Agent.Core
{
    class Score
    {
        public static void ReduceInactiveUserScores(ref Web.Model.HangoutDBEntities context)
        {
            //reduce 3 score  points for every user every week 
            List<Web.Model.User> Users = Web.Core.Score.UserScore.GetInActiveUsers(ref context);

            foreach (Web.Model.User user in Users)
            {
                Web.Core.Score.UserScore.DecreaseUserScore(user.UserID, 3, ref context); //decrease 2 score from every user :)
            }
        }

    }
}
